package com.woniuxy.educationplatform.service.impl;

import com.woniuxy.educationplatform.bean.MsgTypeBean;
import com.woniuxy.educationplatform.bean.SmsArchetypeBean;
import com.woniuxy.educationplatform.bean.SmsSignBean;
import com.woniuxy.educationplatform.mapper.MsgTypeMapper;
import com.woniuxy.educationplatform.mapper.SmsArchetypeMapper;
import com.woniuxy.educationplatform.mapper.SmsSignMapper;
import com.woniuxy.educationplatform.service.ISMSService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Transactional(readOnly = true)
@Service
public class SMSServiceImpl implements ISMSService {

    @Resource
    private SmsSignMapper smsSignMapperImpl;
    @Resource
    private SmsArchetypeMapper smsArchetypeMapperImpl;
    @Resource
    private MsgTypeMapper msgTypeMapperImpl;

    //获取短信签名
    @Override
    public List<SmsSignBean> selectAllSMSSign() {
        return smsSignMapperImpl.selectAllSMSSign();
    }

    //获取短信模板
    @Override
    public List<SmsArchetypeBean> selectAllSmsArchetype() {
        return smsArchetypeMapperImpl.selectAllSmsArchetype();
    }

    //查询消息类型
    @Override
    public List<MsgTypeBean> selectAllMsgType() {
        return msgTypeMapperImpl.selectAllMsgType();
    }
}
